package com.hz.rouyigonggong.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hz.rouyigonggong.domain.basedomain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author guo
 * @description 入库订单表
 * @date 3/4 18:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LgInboundOrder  {

  @TableId(value ="inbound_id" ,type = IdType.AUTO )
  private Integer inboundId;
  private Integer orderNumber;
  private Integer sellerId;
  private Integer goodsId;
  private Double verifiedWeight;  //入库核实重量
  private Integer actualQuantity;   //入库核实数量
  private Integer unitId;
  private Integer subId;

  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // 格式化 JSON 输出
  private Date inboundDate;
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // 格式化 JSON 输出
  private java.sql.Timestamp expiryDate;
  private String sellerSignature;
  private Integer status;

  private String createBy;
  private String updateBy;
  private String createTime;
  private String updateTime;
  @TableLogic
  private Integer deleteStatus;
  @TableField(exist = false)
  private Map<String, Object> params = new HashMap<>();

}
